home *** CD-ROM | disk | FTP | other *** search
/ MacPeople 2001 June 15 / MACPEOPLE-2001-06-15.ISO.7z / MACPEOPLE-2001-06-15.ISO / 連載データ / OS X情報局 / x-assist-03j.sit / X-Assist Japanese.dmg / X-Assist プラグイン SDK / MP3 Plugin Example / XAPlugin.h < prev    next >
Text File  |  2001-04-17  |  2KB  |  70 lines

  1. //
  2. //  XAPlugin.h
  3. //  XAPlugin
  4. //
  5. //  Created by rosst on Fri Apr 13 2001.
  6. //  Copyright (c) 2001 __CompanyName__. All rights reserved.
  7. //
  8.  
  9. #import <Cocoa/Cocoa.h>
  10. #include <QuickTime/QuickTime.h>
  11.  
  12. // ============================
  13. // == Change "MP3Plugin" below to your plugin name.
  14. // == Once you build the plugin, place it into the "X-Assist Plugins" folder
  15. // == and everything should just load.
  16. // == NOTE: you MUST use a unique name, otherwise the conflicting plugins
  17. // ==       will NOT load.
  18. // ============================
  19.  
  20. @interface MP3Plugin : NSObject {
  21.     NSMenuItem*    mPluginMenuItem;
  22.     
  23.     // Your variables go here...
  24.     long    mCurVolume;
  25.     NSMenu*    mSubMenu;
  26.     NSArray*    mPlaybackFolder;
  27.     NSString*    mPlaybackFolderPath;
  28.     NSTimer*    mPlaybackTimer;
  29.     int        mPlaybackItem;
  30.     
  31.     // QT Stuff..
  32.     NSMovie*    mCurNSMovie;
  33.     Movie    mCurMovie;
  34. }
  35.  
  36. - (id)init;
  37. - (void)shutdownPlugin;
  38.  
  39. // =============================
  40. // == Required Plugin Routine ==
  41. // =============================
  42.  
  43. // == API VERSION 1 ROUTINES ==
  44.  
  45. // This routine is called to obtain a menu item to be inserted into the menu.
  46. - (NSMenuItem*)getMenuItem;
  47.  
  48. // items below are for future use.
  49. - (int)getPluginAPIVersion;
  50. - (int)getMenuItemInsertLocation;
  51.  
  52. - (NSString*)getPluginDescription;    // return info & copyright etc.
  53. - (void)doConfigurePlugin;        // put up config window...
  54.  
  55. // == API VERSION 2 ROUTINES ==
  56.  
  57.  
  58. // =============================
  59.  
  60. // User defined routines.
  61. - (IBAction)ChooseFolder:(id)sender;
  62. - (void)UpdateMenus;
  63. - (IBAction)PlayMeMenuSelect:(id)sender;
  64. -(void)PlayAMovie:(NSString*)file;
  65. -(void)TimerProc:(NSTimer*)timer;
  66. -(void)Cleanup;
  67. -(void)PlayMenuItemNumber:(int)itemNum;
  68. - (IBAction)StopPlaying:(id)sender;
  69.  
  70. @end